package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.dto.AttrGroupEntityDto;
import com.atguigu.gulimall.product.entity.AttrEntity;
import com.atguigu.gulimall.product.vo.AttrGroupEntityVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author chenhaifu
 * @email 542704865@qq.com
 * @date 2021-03-04 21:22:43
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> selectAttrs(Long attrgroupId);

    void saveAttr(Map<String, Object> params);

    void removeAttrsByIds(List<AttrGroupEntityVo> attrGroupEntityVos);

    void saveAttrs(List<AttrGroupEntityVo> attrGroupEntityVos);

    List<AttrGroupEntityDto> withattrList(Long catelogId);

}

